/* Copyright (c), 1999, 2000 - phpauction This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation (version 2 or later). This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ Function ToBeDeleted($index) { Global $delete; $i = 0; while($i < count($delete)) { if($delete[$i] == $index) return true; $i++; } return false; } require('./includes/messages.inc.php'); require('./includes/config.inc.php'); if($act){ $rebuilt_array = array(); $i = 0; while($i < count($new_payments)){ if(!ToBeDeleted($i) && strlen($new_payments[$i]) != 0){ $rebuilt_array[] = $new_payments[$i]; } $i++; } //-- $query = "delete from blacklist where user='$user_id'"; $result = mysql_query($query); if(!$result) { print $ERR_001." - ".mysql_error(); exit; } //-- $i = 0; $counter = 1; while($i < count($rebuilt_array)){ $query = "insert into blacklist values('',\"$user_id\",\"$rebuilt_array[$i]\")"; $result = mysql_query($query); if(!$result) { print $ERR_001." - ".mysql_error(); exit; } $counter++; $i++; } $MSG = "MSG_093b"; } ?>
print $MSG_075b; ?> |